<template>
  <div>
    <n-button @click="showToast">测试</n-button>
  </div>
</template>

<script setup>
import {
  NButton
} from 'naive-ui'

const showToast = ()=>{
  window.$message.success(
      '哈哈哈'
  )
}
</script>

<style>
body {
  padding: 16px;
}
</style>
